#include "BucketsUtils.h"

char * bucket_get_name_in_path(sds path) {
    if (sds_index_of_start(path, 1, '/') == -1) {
        return NULL;
    }
    return sds_get_str_range(path, 1, sds_index_of_start(path, 1, '/') - 1);
}